// Copyright 2018 The kingbus Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package storage

import "errors"

var (
	//ErrKeyNotFound return for key is not found
	ErrKeyNotFound = errors.New("storage:key is not found")
	//ErrKeyIsNil return for key is nil
	ErrKeyIsNil = errors.New("storage:key is nil")
	//ErrArgsIllegal return for args are illegal
	ErrArgsIllegal = errors.New("storage:args are illegal")
	//ErrNotContain return for gtids not be contained
	ErrNotContain = errors.New("storage:gtids not be contained")
	//ErrOutOfBound return for index out of bound
	ErrOutOfBound = errors.New("storage:index out of bound")
	//ErrNotContinuous return for  index is not continuous
	ErrNotContinuous = errors.New("storage:index is not continuous")
	//ErrClosed return for segment is closed
	ErrClosed = errors.New("storage:segment is closed")
	//ErrNotWritable return for segment not writable
	ErrNotWritable = errors.New("storage:segment not writable")
)
